package per.jdz.demo;

import javax.annotation.Resource;

import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import per.jdz.demo.service.RetryerService;
import per.jdz.retryer.config.EnableRetryer;

@SpringBootApplication
@EnableRetryer
public class DemoApplication implements CommandLineRunner {

	@Resource
	RetryerService retryerService;

	public static void main(String[] args) {
		SpringApplication.run(DemoApplication.class, args);
	}

	@Override
	public void run(String... args) throws Exception {
		retryerService.test();
	}

}
